import { id } from 'element-plus/es/locale'
import Mock from 'mockjs'

// 模拟数据
const data = Mock.mock({
  'items|30': [
    {
      id: '@id',
      name: '@name',
      'age|18-30': 1
    }
  ]
})

// 设置响应规则
Mock.mock('/api/login', 'post', () => {
  return {
    code: 200,
    data: {
      id: 1,
      token: 'xxxxx'
    }
  }
})
